package com.kymatrix.kycarbon.xsmd.common.business.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotNull;
import lombok.Data;

@ApiModel("基础分页请求")
@Data
public class BasePageReq {
    
    @ApiModelProperty(value = "页数", required = true, example = "1")
    @NotNull(message = "当前页数不能为空")
    protected Integer current = 1;
    
    @ApiModelProperty(value = "每页记录数", required = true, example = "10")
    @NotNull( message = "每页显示的记录数不能为空")
    protected Integer pageSize = 10;

}
